const express = require('express')
const webpack = require('webpack')
const webpackDevMiddleware = require('webpack-dev-middleware')
const config = require('./webpack.config.js')
const app = express()
const compiler = webpack(config)
app.use(webpackDevMiddleware(compiler, {
    publicPath: '/'
}))
app.listen(12345, function () {
    console.log('http://localhost:12345')
})